#include "QueryResult.h"
/**
 * @brief Construct a new Query Result:: Query Result object
 * 
 * @param s 
 * @param p 
 * @param f 
 */
QueryResult::QueryResult(std::string s, 
                         std::shared_ptr<std::set<line_no>> p, 
                         std::shared_ptr<std::vector<std::string>> f)
    : sought(s), lines(p), file(f)
{

}
/**
 * @brief 
 * 
 * @return std::set<QueryResult::line_no>::size_type 
 */
std::set<QueryResult::line_no>::size_type QueryResult::size() const
{
    return lines->size();
}
/**
 * @brief 
 * 
 * @return QueryResult::line_iter 
 */
QueryResult::line_iter QueryResult::begin() const
{
    return lines->begin();
}
/**
 * @brief 
 * 
 * @return QueryResult::line_iter 
 */
QueryResult::line_iter QueryResult::end() const
{
    return lines->end();
}
/**
 * @brief 
 * 
 * @return std::shared_ptr<std::vector<std::string> > 
 */
std::shared_ptr<std::vector<std::string> > QueryResult::get_file()
{
    return file;
}